#!/bin/sh

#Test if the number of input arguments is correct
ARGS=1
E_BADARGS=99;
if [ $# -ne "$ARGS" ]
then
  echo "Usage: `basename $0` twitter_ringof.txt"
  exit $E_BADARGS
fi

cat $1 | perl twitter_createring.pl > ring.tmp
./twitter_follow.sh ring.tmp
rm ring.tmp
